package org.rain.core.webmbc;

import org.rain.common.util.Json;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.GsonHttpMessageConverter;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.nio.charset.StandardCharsets;
import java.util.List;

/**
 * created by yangtong on 2025/4/12 01:00:59
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    /**
     * 重定向
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // 访问根路径时时重定向到 /rain/doc.html
        //registry.addRedirectViewController("/", "/index.html");
    }
}
